#ifndef LOGINFORM_H
#define LOGINFORM_H

#include <QTimer>
#include <QWidget>

namespace Ui {
class LoginForm;
}

class LoginForm : public QWidget
{
    Q_OBJECT

public:
    explicit LoginForm(QWidget *parent = nullptr);
    ~LoginForm();

private slots:
    void on_Exit_pushButton_clicked();

    void on_autoLogin_checkBox_stateChanged(int arg1);

    void on_remberPwd_checkBox_stateChanged(int arg1);

    void on_user_lineEdit_focusChanged();

    void on_pwd_lineEdit_focusChanged();

    void onAutoLoginTimer();
    void on_login_pushButton_clicked();

    void on_pushButton_clicked();

protected:
    bool login();
    void scaleWidgets(QWidget *widget, double xScale,double yScale);

private:
    Ui::LoginForm *ui;
    QTimer m_autoLoginTimer;
    int m_nLoginTimerCount;
};

#endif // LOGINFORM_H
